xen/arm32: Introduce lookup_processor_type
authorJulien Grall <julien.grall@linaro.org>
Wed, 5 Mar 2014 04:46:23 +0000 (12:46 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 14 Mar 2014 14:56:23 +0000 (14:56 +0000)
commitdb996100025b879ec7a10875671c06cbe76922f4
treee4de250b4d9940b95ade5eaff923eb2c2c838af0
parent679bd6e334c8d2f5628e3e6a3a62a8811d90df57
xen/arm32: Introduce lookup_processor_type

Looking for a specific proc_info structure is already implemented in assembly.
Implement lookup_processor_type to avoid duplicate code between C and
assembly.

This function searches the proc_info_list structure following the processor
ID. If the search fail, it will return NULL, otherwise a pointer to this
structure for the specific processor.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/arm32/head.S